package com.unicom.aop.annotation;

import org.springframework.context.annotation.*;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/12/15 8:51
 * Description: 类似于xml中bean标签的作用
 */

@Configuration
@ComponentScan(basePackages = {"com.unicom.aop.annotation"})
public class Config {

    @Lazy
    @Scope("singleton")
    @Bean("testBean1")
    public TestBean testBean(){
        return new TestBean();
    }
}
